package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户基本信息对象 user_info
 * 
 * @author ruoyi
 * @date 2023-09-20
 */
public class UserInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 1：出借人 2：借款人 */
    @Excel(name = "1：出借人 2：借款人")
    private Long userType;

    /** 手机号 */
    @Excel(name = "手机号")
    private String mobile;

    /** 用户密码 */
    @Excel(name = "用户密码")
    private String password;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String nickName;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String name;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idCard;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 微信用户标识openid */
    @Excel(name = "微信用户标识openid")
    private String openid;

    /** 头像 */
    @Excel(name = "头像")
    private String headImg;

    /** 绑定状态（0：未绑定，1：绑定成功 -1：绑定失败） */
    @Excel(name = "绑定状态", readConverterExp = "0=：未绑定，1：绑定成功,-=1：绑定失败")
    private Long bindStatus;

    /** 借款人认证状态（0：未认证 1：认证中 2：认证通过 -1：认证失败） */
    @Excel(name = "借款人认证状态", readConverterExp = "0=：未认证,1=：认证中,2=：认证通过,-=1：认证失败")
    private Long borrowAuthStatus;

    /** 绑定账户协议号 */
    @Excel(name = "绑定账户协议号")
    private String bindCode;

    /** 用户积分 */
    @Excel(name = "用户积分")
    private Long integral;

    /** 状态（0：锁定 1：正常） */
    @Excel(name = "状态", readConverterExp = "0=：锁定,1=：正常")
    private Long status;

    /** 逻辑删除(1:已删除，0:未删除) */
    @Excel(name = "逻辑删除(1:已删除，0:未删除)")
    private Integer isDeleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserType(Long userType) 
    {
        this.userType = userType;
    }

    public Long getUserType() 
    {
        return userType;
    }
    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setIdCard(String idCard) 
    {
        this.idCard = idCard;
    }

    public String getIdCard() 
    {
        return idCard;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setOpenid(String openid) 
    {
        this.openid = openid;
    }

    public String getOpenid() 
    {
        return openid;
    }
    public void setHeadImg(String headImg) 
    {
        this.headImg = headImg;
    }

    public String getHeadImg() 
    {
        return headImg;
    }
    public void setBindStatus(Long bindStatus) 
    {
        this.bindStatus = bindStatus;
    }

    public Long getBindStatus() 
    {
        return bindStatus;
    }
    public void setBorrowAuthStatus(Long borrowAuthStatus) 
    {
        this.borrowAuthStatus = borrowAuthStatus;
    }

    public Long getBorrowAuthStatus() 
    {
        return borrowAuthStatus;
    }
    public void setBindCode(String bindCode) 
    {
        this.bindCode = bindCode;
    }

    public String getBindCode() 
    {
        return bindCode;
    }
    public void setIntegral(Long integral) 
    {
        this.integral = integral;
    }

    public Long getIntegral() 
    {
        return integral;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userType", getUserType())
            .append("mobile", getMobile())
            .append("password", getPassword())
            .append("nickName", getNickName())
            .append("name", getName())
            .append("idCard", getIdCard())
            .append("email", getEmail())
            .append("openid", getOpenid())
            .append("headImg", getHeadImg())
            .append("bindStatus", getBindStatus())
            .append("borrowAuthStatus", getBorrowAuthStatus())
            .append("bindCode", getBindCode())
            .append("integral", getIntegral())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isDeleted", getIsDeleted())
            .toString();
    }
}
